import request from '../request'
// 待复习单词列表
export const reviewList = (data) => {
    return request({
        url: "api/review",
        method: "get",
        data,
    });
};


// 待复习单词列表 提交记忆
export const reviewAdd = (data) => {
    return request({
        url: "api/review",
        method: "post",
        data,
    });
};


// 新增新单词
export const wordAdd = (data) => {
    return request({
        url: "api/add",
        method: "post",
        data,
    });
};

// 随机返回单词
export const randomWord = (data) => {
    console.log(data);
    return request({
        url: "api/randomword/" + data.size,
        method: "get",
        data,
    });
}

// 提交测试结果
export const wordTestSave = (data) => {
    return request({
        url: "api/saveTestResult",
        method: "post",
        data,
    });
};